//
//  nnqTtJJLCFHomeMsgCelltclBoF.m
//  Dvjf_ios
//
//  Created by Ji on 2018/9/11.
//  Copyright © 2018年 ski. All rights reserved.
//

#import "nnqTtJJLCFHomeMsgCelltclBoF.h"

@interface nnqTtJJLCFHomeMsgCelltclBoF ()

@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UILabel *hnRcVmtimeLabelncDSPi;
@property (nonatomic, strong) UILabel *NdgzxmdesLabelTTSqri;

@end

@implementation nnqTtJJLCFHomeMsgCelltclBoF

- (void)reloadData
{
    self.backgroundColor = QTZ_White;
    if (!self.titleLabel) {
        self.titleLabel = [UILabel new];
        self.titleLabel.font = FONT(15);
        self.titleLabel.textColor = QTZ_Gray51;
        [self addSubview:self.titleLabel];
    }
    
    if (self.titleLabel) {
        self.titleLabel.text = self.data.topic;
        [self.titleLabel sizeToFit];
        self.titleLabel.left = 10;
        self.titleLabel.top = 10;
    }
    
    if (!self.hnRcVmtimeLabelncDSPi) {
        self.hnRcVmtimeLabelncDSPi = [UILabel new];
        self.hnRcVmtimeLabelncDSPi.font = FONT(9);
        self.hnRcVmtimeLabelncDSPi.textColor = QTZ_Gray51;
        [self addSubview:self.hnRcVmtimeLabelncDSPi];
    }
    
    if (self.hnRcVmtimeLabelncDSPi) {
        self.hnRcVmtimeLabelncDSPi.text = [NSString stringWithDate:self.data.addtime];
        [self.hnRcVmtimeLabelncDSPi sizeToFit];
        self.hnRcVmtimeLabelncDSPi.right = FULL_WIDTH - 10;
        self.hnRcVmtimeLabelncDSPi.top = 10;
    }
    
    if (!self.NdgzxmdesLabelTTSqri) {
        self.NdgzxmdesLabelTTSqri = [[UILabel alloc] initWithFrame:CGRectMake(10, self.titleLabel.bottom + 10, FULL_WIDTH - 20, 13)];
        self.NdgzxmdesLabelTTSqri.lineBreakMode = NSLineBreakByTruncatingTail;
        self.NdgzxmdesLabelTTSqri.font = FONT(12);
        self.NdgzxmdesLabelTTSqri.textColor = QTZ_Gray102;
        [self addSubview:self.NdgzxmdesLabelTTSqri];
    }
    
    if (self.NdgzxmdesLabelTTSqri) {
        self.NdgzxmdesLabelTTSqri.text = self.data.msg;
    }
    
}

@end
